﻿/**
 * Author:
 *				Đỗ Việt Hoà
 * Copyright (c) 2012 Đỗ Việt Hoà <vit@launchar.com>.
 * 
 * This file is part of Launchar.
 * 
 * Launchar is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * Launchar is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with Launchar.  If not, see <http://www.gnu.org/licenses/>.
 */

using System;
using System.Globalization;

namespace vIT.Web.Security
{
	/// <summary>
	/// 
	/// </summary>
	public class User
	{
		#region Attributes

		/// <summary>
		/// Gets or sets the ulong value that is the user's ID.
		/// </summary>
		public ulong ID { get; set; }

		/// <summary>
		/// Gets or sets the string value that is the user's name used for loging-in.
		/// </summary>
		public string Name { get; set; }

		/// <summary>
		/// Gets or sets the string value that is the e-mail address.
		/// </summary>
		public string Email { get; set; }

		/// <summary>
		/// Gets or sets the string value that is the user's name that will be displayed on the web as the fullname.
		/// </summary>
		public string DisplayName { get; set; }

		/// <summary>
		/// Gets or sets the <see cref="vIT.Web.Security.UserGender"/> object that is the user's gender.
		/// </summary>
		public UserGender Gender { get; set; }

		/// <summary>
		/// Gets or sets the <see cref="System.DateTime"/> object that is the birthday.
		/// </summary>
		public DateTime Birthday { get; set; }

		/// <summary>
		/// Gets or sets the <see cref="System.Globalization.Locale"/> object that contains the locale information.
		/// </summary>
		public CultureInfo Locale { get; set; }

		/// <summary>
		/// Gets or sets the <see cref="System.TimeZone"/> object that contains the time zone.
		/// </summary>
		public TimeZone TimeZone { get; set; }

		/// <summary>
		/// Gets or sets the <see cref="System.DateTime"/> object that is the time when the user was created.
		/// </summary>
		public DateTime CreatedTime { get; set; }

		/// <summary>
		/// Gets or sets the <see cref="System.DateTime"/> object that is the time when the user's information was updated.
		/// </summary>
		public DateTime UpdatedTime { get; set; }

		/// <summary>
		/// Gets or sets the <see cref="System.DateTime"/> object that is the last time of the user's activity.
		/// </summary>
		public DateTime LastActivityTime { get; set; }

		/// <summary>
		/// Gets or sets the <see cref="vIT.Web.Security.UserStatus"/> object that is the status of the user.
		/// </summary>
		public UserStatus Status { get; set; }

		#endregion
	}
}
